import { hyRequest } from "./index"

export function getMusicBanner() {
    return hyRequest.get({
        url:"/banner",
    })
}

export function getPlaylistdetail(id) {
    return hyRequest.get({
        url:"/playlist/detail",
        data: {
            id
        }
    })
}

export function getTopPlayList(cat = "全部",limit = 30,offset = 0) {
    return hyRequest.get({
        url:"/top/playlist",
        data: {
            cat,
            limit,
            offset
        }
    })
}

export function getPlaylistHot() {
    return hyRequest.get({
        url: "/playlist/hot",
    })
}